package com.videoStream.video.service;

import com.videoStream.video.pojo.CameraLive;
import com.videoStream.video.pojo.CameraPojo;

/**
 * @Author: wwy
 * @Date: 2022/7/14 9:35
 */
public interface CameraService {
    /**
     * 打开监控预览
     * @param cameraPojo
     * @return
     */
    CameraLive openCamera(CameraPojo cameraPojo);

    /**
     * 关流
     * @param tokens
     */
    void closeCamera(String tokens);

    /**
     * 网络校验
     * @param ip
     * @param port
     * @return
     */
    boolean networkTest(String ip,short port);
}
